﻿package fwk.sharedLibs{
	
	import flash.display.MovieClip;
	import fwk.interfaces.ISharedLibrary;
	
	public class MainLibrary extends MovieClip implements ISharedLibrary{

		private var classesLib:ClassesLibrary;
		
		//--------------------------------------------------------
		//--Cosntructeur
		//--------------------------------------------------------
		function MainLibrary(){
			trace("new MainLibrary");
			
			classesLib = new ClassesLibrary();
		}
		//--------------------------------------------------------
		//--Getter class object by getClassByAlias
		//--------------------------------------------------------
		public function getInstanceByName(name:String):Object {
			return classesLib.getInstanceByName(name);
		}
	}
}